# ----------------------------------------------------------------------------
# Makefile for building tapp
#
# Copyright 2012 Archermind (http://www.archermind.com/)
#

CFLAGS				= -Wall -O2 -static
CC				= arm-linux-gcc
INSTALL				= install

TARGET				= zftest x86_rda_client  x86_rda_server arm_rda_server


all: $(TARGET)

zftest: zftest.c
	$(CC) $(CFLAGS) $< -o $@ -lpthread

x86_rda_client: x86_rda_client.c
	gcc $(CFLAGS) $< -o $@

arm_rda_server: arm_rda_server.c
	$(CC) $(CFLAGS) $< -o $@ -lpthread

x86_rda_server: arm_rda_server.c
	gcc  $< -o $@ -lpthread


install: $(TARGET)
	$(INSTALL) $^ $(DESTDIR)/usr/bin

clean distclean:
	rm -rf *.o $(TARGET) *~


# ----------------------------------------------------------------------------

.PHONY: $(PHONY) install clean distclean

# End of file
# vim: syntax=make

